package com.xuecheng.api.content.model.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * 课程基本信息VO
 */
@Data
public class CourseBaseVO {

    private Long courseBaseId;

    @NotBlank(message = "课程名称不可以为空")
    private String name;

    @NotBlank(message = "适用人群不可以为空")
    @Length(min = 1, max = 500, message = "适用人群信息长度需要在6-500个字符之间")
    private String users;

    @Length(min = 1, max = 50, message = "课程标签信息长度需要在1-500个字符之间")
    private String tags;

    @NotBlank(message = "大分类不可以为空")
    private String mt;

    @NotBlank(message = "小分类不可以为空")
    private String st;

    @NotBlank(message = "课程等级不可以为空")
    private String grade;

    @NotBlank(message = "教学模式不可以为空")
    private String teachmode;

    @NotBlank(message = "课程介绍不可以为空")
    private String description;

    @NotBlank(message = "课程图片不可以为空")
    private String pic;

    @NotBlank(message = "收费规则不可以为空")
    private String charge;

    private BigDecimal price;

}
